import axios from "../utils/axios"
export let getList1 = ()=>{
    return (dispatch)=>{
        axios.get("/list1").then(res=>{
            dispatch({
                type:"getList1",
                payload:res.data
            })
        })
    }
}
export let addfn = (value)=>{
    return {
       type:"addfn",
       payload:value
    }
}
export let delFn = (id)=>{
    return {
       type:"delFn",
       payload:id
    }
}
export let editFn = (value)=>{
    
    return {
       type:"editFn",
       payload:value
    }
}
export let searchfn = (value)=>{
    
    return {
       type:"searchfn",
       payload:value
    }
}